projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d515c43
)
widget: Stop using gdk_device_get_position
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 29 May 2019 11:43:29 +0000
(07:43 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 29 May 2019 18:04:08 +0000
(18:04 +0000)
Root coordinates are going away. Stop
setting them in crossing events, so we
can drop this api.
gtk/gtkwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwidget.c
b/gtk/gtkwidget.c
index ba904923828a4878562678fabe19ce90750f1281..22bbf1886cefd83f8c2c320ac64ec127ac862b1e 100644
(file)
--- a/
gtk/gtkwidget.c
+++ b/
gtk/gtkwidget.c
@@
-8315,9
+8315,8
@@
synth_crossing (GtkWidget *widget,
event->any.send_event = TRUE;
event->crossing.child_surface = g_object_ref (surface);
event->crossing.time = GDK_CURRENT_TIME;
- gdk_device_get_position (device,
- &event->crossing.x_root,
- &event->crossing.y_root);
+ event->crossing.x_root = 0;
+ event->crossing.y_root = 0;
gdk_surface_get_device_position (surface,
device,
&event->crossing.x,